﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UIData3D : UIMain
{
    public Transform objPostion_Transf;
    void Start()
    {
        
    }

    void Update()
    {
        SetUIRectangl(objPostion_Transf, transform, transform.parent.GetComponent<RectTransform>());
    }

    //物体被激活时调用，激活时调整位置，避免瞬移
    void OnEnable()
    {
        SetUIRectangl(objPostion_Transf, transform, transform.parent.GetComponent<RectTransform>());
    }
    //物体被隐藏时调用
    void OnDisable()
    {
    }
}
